﻿using iMES.Mass.IRepositories;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace iMES.Mass.Services
{
    public partial class Mass_DetectionTemplate_ProductService
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        private readonly IMass_DetectionTemplate_ProductRepository mass_DetectionTemplate_ProductRepository;//访问数据库

        [ActivatorUtilitiesConstructor]
        public Mass_DetectionTemplate_ProductService(
            IMass_DetectionTemplate_ProductRepository dbRepository,
            IHttpContextAccessor httpContextAccessor
            )
        : base(dbRepository)
        {
            _httpContextAccessor = httpContextAccessor;
            mass_DetectionTemplate_ProductRepository = dbRepository;
            //多租户会用到这init代码，其他情况可以不用
            //base.Init(dbRepository);
        }
    }
}
